/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bhatni.taskmanager.task;

import com.bhatni.taskmanager.schedule.Schedule;
import org.w3c.dom.Element;

/**
 *
 * @author virendra
 */
public abstract class TaskBase implements Task {

    Schedule schedule;
    private String name;
    private String description;

    public Schedule getSchedule() {
        return this.schedule;
    }

    public void setSchedule(Schedule schedule) {
        this.schedule = schedule;
    }

    public String getType() {
        return this.getClass().getSimpleName();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void intializeFromXML(Element element) {
        // XMLBeanUtils.intializeFromXML(this, element);
    }

    public abstract void run();
}
